﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200060D RID: 1549
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GameRogueMiracle : IMessage<GameRogueMiracle>, IMessage, IEquatable<GameRogueMiracle>, IDeepCloneable<GameRogueMiracle>, IBufferMessage
	{
		// Token: 0x170013E4 RID: 5092
		// (get) Token: 0x060045AE RID: 17838 RVA: 0x000BEA9C File Offset: 0x000BCC9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GameRogueMiracle> Parser
		{
			get
			{
				return GameRogueMiracle._parser;
			}
		}

		// Token: 0x170013E5 RID: 5093
		// (get) Token: 0x060045AF RID: 17839 RVA: 0x000BEAA3 File Offset: 0x000BCCA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GameRogueMiracleReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170013E6 RID: 5094
		// (get) Token: 0x060045B0 RID: 17840 RVA: 0x000BEAB5 File Offset: 0x000BCCB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GameRogueMiracle.Descriptor;
			}
		}

		// Token: 0x060045B1 RID: 17841 RVA: 0x000BEABC File Offset: 0x000BCCBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GameRogueMiracle()
		{
		}

		// Token: 0x060045B2 RID: 17842 RVA: 0x000BEAD0 File Offset: 0x000BCCD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GameRogueMiracle(GameRogueMiracle other) : this()
		{
			this.durability_ = other.durability_;
			this.miracleId_ = other.miracleId_;
			this.dPDOKIFJOGB_ = other.dPDOKIFJOGB_.Clone();
			this.curTimes_ = other.curTimes_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060045B3 RID: 17843 RVA: 0x000BEB29 File Offset: 0x000BCD29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GameRogueMiracle Clone()
		{
			return new GameRogueMiracle(this);
		}

		// Token: 0x170013E7 RID: 5095
		// (get) Token: 0x060045B4 RID: 17844 RVA: 0x000BEB31 File Offset: 0x000BCD31
		// (set) Token: 0x060045B5 RID: 17845 RVA: 0x000BEB39 File Offset: 0x000BCD39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Durability
		{
			get
			{
				return this.durability_;
			}
			set
			{
				this.durability_ = value;
			}
		}

		// Token: 0x170013E8 RID: 5096
		// (get) Token: 0x060045B6 RID: 17846 RVA: 0x000BEB42 File Offset: 0x000BCD42
		// (set) Token: 0x060045B7 RID: 17847 RVA: 0x000BEB4A File Offset: 0x000BCD4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MiracleId
		{
			get
			{
				return this.miracleId_;
			}
			set
			{
				this.miracleId_ = value;
			}
		}

		// Token: 0x170013E9 RID: 5097
		// (get) Token: 0x060045B8 RID: 17848 RVA: 0x000BEB53 File Offset: 0x000BCD53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<uint, uint> DPDOKIFJOGB
		{
			get
			{
				return this.dPDOKIFJOGB_;
			}
		}

		// Token: 0x170013EA RID: 5098
		// (get) Token: 0x060045B9 RID: 17849 RVA: 0x000BEB5B File Offset: 0x000BCD5B
		// (set) Token: 0x060045BA RID: 17850 RVA: 0x000BEB63 File Offset: 0x000BCD63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurTimes
		{
			get
			{
				return this.curTimes_;
			}
			set
			{
				this.curTimes_ = value;
			}
		}

		// Token: 0x060045BB RID: 17851 RVA: 0x000BEB6C File Offset: 0x000BCD6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GameRogueMiracle);
		}

		// Token: 0x060045BC RID: 17852 RVA: 0x000BEB7C File Offset: 0x000BCD7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GameRogueMiracle other)
		{
			return other != null && (other == this || (this.Durability == other.Durability && this.MiracleId == other.MiracleId && this.DPDOKIFJOGB.Equals(other.DPDOKIFJOGB) && this.CurTimes == other.CurTimes && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060045BD RID: 17853 RVA: 0x000BEBEC File Offset: 0x000BCDEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Durability != 0U)
			{
				num ^= this.Durability.GetHashCode();
			}
			if (this.MiracleId != 0U)
			{
				num ^= this.MiracleId.GetHashCode();
			}
			num ^= this.DPDOKIFJOGB.GetHashCode();
			if (this.CurTimes != 0U)
			{
				num ^= this.CurTimes.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060045BE RID: 17854 RVA: 0x000BEC6B File Offset: 0x000BCE6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060045BF RID: 17855 RVA: 0x000BEC73 File Offset: 0x000BCE73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060045C0 RID: 17856 RVA: 0x000BEC7C File Offset: 0x000BCE7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MiracleId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.MiracleId);
			}
			this.dPDOKIFJOGB_.WriteTo(ref output, GameRogueMiracle._map_dPDOKIFJOGB_codec);
			if (this.Durability != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Durability);
			}
			if (this.CurTimes != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.CurTimes);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060045C1 RID: 17857 RVA: 0x000BED04 File Offset: 0x000BCF04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Durability != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Durability);
			}
			if (this.MiracleId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MiracleId);
			}
			num += this.dPDOKIFJOGB_.CalculateSize(GameRogueMiracle._map_dPDOKIFJOGB_codec);
			if (this.CurTimes != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurTimes);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060045C2 RID: 17858 RVA: 0x000BED88 File Offset: 0x000BCF88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GameRogueMiracle other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Durability != 0U)
			{
				this.Durability = other.Durability;
			}
			if (other.MiracleId != 0U)
			{
				this.MiracleId = other.MiracleId;
			}
			this.dPDOKIFJOGB_.MergeFrom(other.dPDOKIFJOGB_);
			if (other.CurTimes != 0U)
			{
				this.CurTimes = other.CurTimes;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060045C3 RID: 17859 RVA: 0x000BEDFD File Offset: 0x000BCFFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060045C4 RID: 17860 RVA: 0x000BEE08 File Offset: 0x000BD008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 8U)
					{
						this.MiracleId = input.ReadUInt32();
						continue;
					}
					if (num == 34U)
					{
						this.dPDOKIFJOGB_.AddEntriesFrom(ref input, GameRogueMiracle._map_dPDOKIFJOGB_codec);
						continue;
					}
				}
				else
				{
					if (num == 48U)
					{
						this.Durability = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.CurTimes = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001B77 RID: 7031
		private static readonly MessageParser<GameRogueMiracle> _parser = new MessageParser<GameRogueMiracle>(() => new GameRogueMiracle());

		// Token: 0x04001B78 RID: 7032
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001B79 RID: 7033
		public const int DurabilityFieldNumber = 6;

		// Token: 0x04001B7A RID: 7034
		private uint durability_;

		// Token: 0x04001B7B RID: 7035
		public const int MiracleIdFieldNumber = 1;

		// Token: 0x04001B7C RID: 7036
		private uint miracleId_;

		// Token: 0x04001B7D RID: 7037
		public const int DPDOKIFJOGBFieldNumber = 4;

		// Token: 0x04001B7E RID: 7038
		private static readonly MapField<uint, uint>.Codec _map_dPDOKIFJOGB_codec = new MapField<uint, uint>.Codec(FieldCodec.ForUInt32(8U, 0U), FieldCodec.ForUInt32(16U, 0U), 34U);

		// Token: 0x04001B7F RID: 7039
		private readonly MapField<uint, uint> dPDOKIFJOGB_ = new MapField<uint, uint>();

		// Token: 0x04001B80 RID: 7040
		public const int CurTimesFieldNumber = 9;

		// Token: 0x04001B81 RID: 7041
		private uint curTimes_;
	}
}
